package cn.studyjava.verify.code12306.mybatis.entity;

import java.io.Serializable;
import java.util.Date;

public class Auth implements Serializable {
    private String authId;

    private Date authStartTime;

    private Date authStopTime;

    private Date verifyCreateTime;

    private Integer authTime;

    private String verifyName;

    private Integer authType;

    private String appId;

    private Integer status;

    private String reasonCode;

    private String ip;

    private static final long serialVersionUID = 1L;

    public String getAuthId() {
        return authId;
    }

    public void setAuthId(String authId) {
        this.authId = authId == null ? null : authId.trim();
    }

    public Date getAuthStartTime() {
        return authStartTime;
    }

    public void setAuthStartTime(Date authStartTime) {
        this.authStartTime = authStartTime;
    }

    public Date getAuthStopTime() {
        return authStopTime;
    }

    public void setAuthStopTime(Date authStopTime) {
        this.authStopTime = authStopTime;
    }

    public Date getVerifyCreateTime() {
        return verifyCreateTime;
    }

    public void setVerifyCreateTime(Date verifyCreateTime) {
        this.verifyCreateTime = verifyCreateTime;
    }

    public Integer getAuthTime() {
        return authTime;
    }

    public void setAuthTime(Integer authTime) {
        this.authTime = authTime;
    }

    public String getVerifyName() {
        return verifyName;
    }

    public void setVerifyName(String verifyName) {
        this.verifyName = verifyName == null ? null : verifyName.trim();
    }

    public Integer getAuthType() {
        return authType;
    }

    public void setAuthType(Integer authType) {
        this.authType = authType;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId == null ? null : appId.trim();
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getReasonCode() {
        return reasonCode;
    }

    public void setReasonCode(String reasonCode) {
        this.reasonCode = reasonCode == null ? null : reasonCode.trim();
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip == null ? null : ip.trim();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Auth other = (Auth) that;
        return (this.getAuthId() == null ? other.getAuthId() == null : this.getAuthId().equals(other.getAuthId()))
            && (this.getAuthStartTime() == null ? other.getAuthStartTime() == null : this.getAuthStartTime().equals(other.getAuthStartTime()))
            && (this.getAuthStopTime() == null ? other.getAuthStopTime() == null : this.getAuthStopTime().equals(other.getAuthStopTime()))
            && (this.getVerifyCreateTime() == null ? other.getVerifyCreateTime() == null : this.getVerifyCreateTime().equals(other.getVerifyCreateTime()))
            && (this.getAuthTime() == null ? other.getAuthTime() == null : this.getAuthTime().equals(other.getAuthTime()))
            && (this.getVerifyName() == null ? other.getVerifyName() == null : this.getVerifyName().equals(other.getVerifyName()))
            && (this.getAuthType() == null ? other.getAuthType() == null : this.getAuthType().equals(other.getAuthType()))
            && (this.getAppId() == null ? other.getAppId() == null : this.getAppId().equals(other.getAppId()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getReasonCode() == null ? other.getReasonCode() == null : this.getReasonCode().equals(other.getReasonCode()))
            && (this.getIp() == null ? other.getIp() == null : this.getIp().equals(other.getIp()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getAuthId() == null) ? 0 : getAuthId().hashCode());
        result = prime * result + ((getAuthStartTime() == null) ? 0 : getAuthStartTime().hashCode());
        result = prime * result + ((getAuthStopTime() == null) ? 0 : getAuthStopTime().hashCode());
        result = prime * result + ((getVerifyCreateTime() == null) ? 0 : getVerifyCreateTime().hashCode());
        result = prime * result + ((getAuthTime() == null) ? 0 : getAuthTime().hashCode());
        result = prime * result + ((getVerifyName() == null) ? 0 : getVerifyName().hashCode());
        result = prime * result + ((getAuthType() == null) ? 0 : getAuthType().hashCode());
        result = prime * result + ((getAppId() == null) ? 0 : getAppId().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getReasonCode() == null) ? 0 : getReasonCode().hashCode());
        result = prime * result + ((getIp() == null) ? 0 : getIp().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", authId=").append(authId);
        sb.append(", authStartTime=").append(authStartTime);
        sb.append(", authStopTime=").append(authStopTime);
        sb.append(", verifyCreateTime=").append(verifyCreateTime);
        sb.append(", authTime=").append(authTime);
        sb.append(", verifyName=").append(verifyName);
        sb.append(", authType=").append(authType);
        sb.append(", appId=").append(appId);
        sb.append(", status=").append(status);
        sb.append(", reasonCode=").append(reasonCode);
        sb.append(", ip=").append(ip);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}